import request from '@/utils/request'

// 查询用车记录列表
export function listApplyrecord(query) {
  return request({
    url: '/oa/applyrecord/list',
    method: 'get',
    params: query
  })
}

// 查询用车记录详细
export function getApplyrecord(applyId) {
  return request({
    url: '/oa/applyrecord/' + applyId,
    method: 'get'
  })
}

// 新增用车记录
export function addApplyrecord(data) {
  return request({
    url: '/oa/applyrecord',
    method: 'post',
    data: data
  })
}

// 修改用车记录
export function updateApplyrecord(data) {
  return request({
    url: '/oa/applyrecord',
    method: 'put',
    data: data
  })
}

// 删除用车记录
export function delApplyrecord(applyId) {
  return request({
    url: '/oa/applyrecord/' + applyId,
    method: 'delete'
  })
}
